<div class="layui-card-body" style="background: #f2f2f2;padding: 5px 10px">
    <span class="layui-breadcrumb" lay-filter="breadcrumb" style="visibility: visible;">
        <a href="javascript:;">首页</a>

    </span>
</div>

@section('js')
    @parent
    <script>
        layui.use('jquery', function(){
            var $ = layui.$;

            // var name = $('#LAY-system-side-menu .layui-this', window.parent.document).text();
            var pname = $('#LAY-system-side-menu .layui-this', window.parent.document).parents('li').find('cite').text();
            // $('.layui-breadcrumb a').eq(1).text(pname);
            // $('.layui-breadcrumb a').eq(2).find('cite').text(name);

            var tab =  $('#LAY_app_tabsheader .layui-this span', window.parent.document).text();

            var title = '';
            if(pname!=''&&pname!=null){
                var title = '<span lay-separator="">/</span><a href="javascript:;">'+pname+'</a>';
            }
            title += '<span lay-separator="">/</span><a><cite>'+tab+'</cite></a>';
            $('.layui-breadcrumb').append(title);
        });
    </script>
@endsection